package WinterVacation.Day9;

public class Num1 {
    public static int isNumeric(String str){
        int sum = 0;
        for(int i = str.length();--i>=0;){
            int chr=str.charAt(i);
            if(chr>=48 && chr<=57)
                sum++;
        }
        return sum;
    }

    public static void main(String[] args) {
        String str =  "bit666keji123";
        System.out.println(isNumeric(str));
    }
}
